<T:ViewBase x:Class="WPFExcelReport.TKAREZEPT02"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
                    xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"     
                    xmlns:me="clr-namespace:WPFExcelReport" 
                    xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
                    xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
                    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"  
                    xmlns:Localization="clr-namespace:Localization;assembly=Localization"
                    Background="White"  
                    Loaded="Window_Loaded"
     >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:BoolToVisibilityConverter  x:Key="bv"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:TIMES100  x:Key="X100"/>
        <ucd:TIMES10  x:Key="X10"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:PreisConverter  x:Key="PreisConverter"/>
        <ucd:PNumConverter  x:Key="pnum"/>
        <ucd:TextTrimmingConverter  x:Key="Trim"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>  
    </T:ViewBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="1*"></RowDefinition>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
        <WrapPanel>
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARMANDANT:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARMANDANT}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARKANR:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARKANR}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARKAPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARKAPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARVPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARVPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARAFOLGE:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARAFOLGE}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARFOLGEPOS:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARFOLGEPOS}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARAENZL:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARAENZL}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARAENB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARAENB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARAEND:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARAEND}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARNEUB:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARNEUB}" Width="Auto" />
            </Grid> 
           <Grid Margin="10,0,0,0">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                    <ColumnDefinition Width="Auto"></ColumnDefinition>
                </Grid.ColumnDefinitions>
                <TextBlock   Grid.Column="0" Text="{Binding Source={Localization:Translate Word=KARNEUD:}}"></TextBlock>
                 <TextBox Grid.Column="1"  CharacterCasing="Upper"   Text="{Binding dwKAREZEPT.KARNEUD}" Width="Auto" />
            </Grid> 
        </WrapPanel>
        <WrapPanel Visibility="{Binding IsKAREZEPT,Converter={StaticResource ResourceKey=bv}}">
                <ex:TBASE1></ex:TBASE1>
            </WrapPanel>
        </StackPanel>
        <DataGrid  Grid.Row="1"  VerticalAlignment="Top"  
                                   AutoGenerateColumns="False"
                                   EnableRowVirtualization="False"
                                   VerticalScrollBarVisibility="Auto"
                                   HorizontalScrollBarVisibility="Auto"
                                   HeadersVisibility="Column"     
                                   ItemsSource="{Binding vwKAREZEPT}"  
                                    IsSynchronizedWithCurrentItem="True"
                                   SelectedItem="{Binding Path=dwKAREZEPT, Mode=TwoWay}"
                                   x:Name="dlgVKP"  
                                   RowDetailsVisibilityMode="Visible" Grid.ColumnSpan="2" Margin="0,0.2,0.2,0"
                    >
            <DataGrid.Columns> 
                <DataGridTextColumn x:Name="KARMANDANT"
                                    Binding="{Binding Path=KARMANDANT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMANDANT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARKANR"
                                    Binding="{Binding Path=KARKANR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARKANR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARKAPOS"
                                    Binding="{Binding Path=KARKAPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARKAPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARVPOS"
                                    Binding="{Binding Path=KARVPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARVPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARAFOLGE"
                                    Binding="{Binding Path=KARAFOLGE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARAFOLGE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARFOLGEPOS"
                                    Binding="{Binding Path=KARFOLGEPOS, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARFOLGEPOS}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARAENZL"
                                    Binding="{Binding Path=KARAENZL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARAENZL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARAENB"
                                    Binding="{Binding Path=KARAENB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARAENB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARAEND"
                                    Binding="{Binding Path=KARAEND, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARAEND}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARNEUB"
                                    Binding="{Binding Path=KARNEUB, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARNEUB}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARNEUD"
                                    Binding="{Binding Path=KARNEUD, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARNEUD}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARSA"
                                    Binding="{Binding Path=KARSA, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARSA}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARREZEPTKZ"
                                    Binding="{Binding Path=KARREZEPTKZ, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARREZEPTKZ}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARREZEPTNR"
                                    Binding="{Binding Path=KARREZEPTNR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARREZEPTNR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARREZEPTST"
                                    Binding="{Binding Path=KARREZEPTST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARREZEPTST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARFLOTTE"
                                    Binding="{Binding Path=KARFLOTTE, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARFLOTTE}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARFKLTR"
                                    Binding="{Binding Path=KARFKLTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARFKLTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARCKLTR"
                                    Binding="{Binding Path=KARCKLTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARCKLTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARFKMTR"
                                    Binding="{Binding Path=KARFKMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARFKMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARCKMTR"
                                    Binding="{Binding Path=KARCKMTR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARCKMTR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARAUFL"
                                    Binding="{Binding Path=KARAUFL, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARAUFL}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARRFILLER"
                                    Binding="{Binding Path=KARRFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARRFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMAT"
                                    Binding="{Binding Path=KARMAT, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMAT}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARVAR"
                                    Binding="{Binding Path=KARVAR, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARVAR}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARVERBME"
                                    Binding="{Binding Path=KARVERBME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARVERBME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARVERBMEH"
                                    Binding="{Binding Path=KARVERBMEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARVERBMEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARKOME"
                                    Binding="{Binding Path=KARKOME, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARKOME}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARKOMEH"
                                    Binding="{Binding Path=KARKOMEH, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARKOMEH}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMFILLER"
                                    Binding="{Binding Path=KARMFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMFILLER}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARVERLUST"
                                    Binding="{Binding Path=KARVERLUST, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARVERLUST}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARKOPAUF"
                                    Binding="{Binding Path=KARKOPAUF, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARKOPAUF}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMGK01"
                                    Binding="{Binding Path=KARMGK01, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMGK01}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMGK02"
                                    Binding="{Binding Path=KARMGK02, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMGK02}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMGK03"
                                    Binding="{Binding Path=KARMGK03, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMGK03}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMGK04"
                                    Binding="{Binding Path=KARMGK04, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMGK04}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARMGK05"
                                    Binding="{Binding Path=KARMGK05, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARMGK05}}"
                                    Width="Auto" />
                <DataGridTextColumn x:Name="KARFILLER"
                                    Binding="{Binding Path=KARFILLER, Converter={StaticResource ResourceKey=Trim}, Mode=TwoWay}"
                                    Header="{Binding Source={Localization:Translate Word=KARFILLER}}"
                                    Width="Auto" />
            </DataGrid.Columns>
        </DataGrid  >
    </Grid>
</T:ViewBase> 
 
